﻿<Window x:Class="Aoxuelf.MDSTool.UI.InsertDALUpdateForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="插入更新方法" Height="400" Width="520" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="38"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="15*"/>
                <ColumnDefinition Width="60*"/>
                <ColumnDefinition Width="15*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="方法名称：" HorizontalAlignment="Right" VerticalAlignment="Center"></TextBlock>
            <TextBox Name="txtMethodName" HorizontalAlignment="Stretch" Grid.Column="1" VerticalAlignment="Center" Margin="2" Text="{Binding MethodName}"></TextBox>
            <CheckBox Name="cbxIsConcurrency" Content="并发校验" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding IsConcurrency}"></CheckBox>
            <TextBlock Text="方法概述：" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1"></TextBlock>
            <TextBox Name="txtRemark" HorizontalAlignment="Stretch" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center"  Margin="2" Text="{Binding Summary}"></TextBox>
            <CheckBox Name="cbxIsTran" Content="是否事务" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding IsTransaction}"></CheckBox>
            <TextBlock Text="SQL语句：" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2"></TextBlock>
            <TextBox Name="txtSQL" HorizontalAlignment="Stretch" Grid.Row="2" Grid.Column="1" VerticalAlignment="Stretch" Text="{Binding SQL}" Grid.ColumnSpan="2" Margin="2,2,20,2" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap"></TextBox>
        </Grid>
        <Button Content="确定" Grid.Row="2" Width="60" Height="26" Name="btnOK" HorizontalAlignment="Left" Margin="344,0,0,0" Click="btnOK_Click"></Button>
        <Button Content="取消" Grid.Row="2" Width="60" Height="26" Name="btnCancel" HorizontalAlignment="Right" Margin="0,0,24,0" Click="btnCancel_Click"></Button>
    </Grid>
</Window>
